package com.xiyin.quartz.job;

import com.xiyin.utils.DateTimeUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;

public class MyJob implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        // 这里编写你的任务逻辑
        System.out.println("Quartz job is executing now..." + DateTimeUtils.format(LocalDateTime.now()));
    }
}
